/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grex;

import grex.Data.ArffTableModel;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author RIK
 */
public class WekaTreeReader {

    BufferedReader bf;

    public void loadFile() throws FileNotFoundException {


        String s;
        try {
            bf = new BufferedReader(new FileReader(".\\BNFs\\J48_Iris.weka"));
            ArffTableModel ar = new ArffTableModel(".\\datasets\\iris.arff");
            for (int i = 0; i < ar.getColumnNames().length; i++) {

                System.out.println(ar.getColumnNames()[i]);

            }
            while(!bf.readLine().equals("------------------"));
            while ((s = bf.readLine()) != null) {
                
                System.out.println(s);
            }
        } catch (IOException ex) {
            Logger.getLogger(WekaTreeReader.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
